package com.wlyuan.open.dto.api.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lijing
 * @description
 */
@Data
@RequiredArgsConstructor
public class OpenApiConsigneeCreationDTO implements Serializable {
    private static final long serialVersionUID = -8753678323930429975L;

    @NotBlank(message = "收货方名称不能为空")
    @Length(max = 80, message = "收货方名称最多可输入80个字符")
    private String name;

    @ApiModelProperty("发货方名称")
    @NotBlank(message = "发货方名称不能为空")
    private String customerName;

    @NotBlank(message = "联系人不能为空")
    @Length(max = 20, message = "联系人最多可输入20个字符")
    @ApiModelProperty(value = "联系人")
    private String contactName;

    @Length(max = 50, message = "联系电话最多可输入50个字符")
    @NotBlank(message = "联系电话不能为空")
    @ApiModelProperty(value = "联系电话")
    private String contactMobile;

    @ApiModelProperty(value = "邮箱")
    private String contractEmail;

    @ApiModelProperty(value = "客户ID", hidden = true)
    private Long customerId;
    @ApiModelProperty(value = "租户ID", hidden = true)
    private Long tenantId;
    @ApiModelProperty(value = "用户ID", hidden = true)
    private Long userId;
}
